<script setup lang="ts">
interface User {
  date: string
  name: string
  address: string
}


const tableData: User[] = [
  {
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
]

</script>

<template>
  <div class="app">
    <DraggablePanel :width="700" :height="500" title="可调整面板">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="Date" width="180" />
        <el-table-column prop="name" label="Name" width="180" />
        <el-table-column prop="address" label="Address" />
      </el-table>
    </DraggablePanel>

    <el-button type="primary">Primary</el-button>
  </div>
</template>

<style scoped>
.app {
  width: 1000px;
  height: 1000px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
}
</style>
